package com.qf.service;

import com.qf.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {
    //查询
    List<Order> selectOrdersByUserId(Integer userId);
    //添加
    void addOrder(String productName, Integer quantity, Double price, Integer userId, String createTime);
    //单独删除
    void  deleteOrder(Integer orderId);
    //批量删除
    void batchDelete(@Param("orderids") List<Integer> orids);
    //模糊查询
    List<Order> findByOrdernameLike(Integer userId, String productName);
}
